import axios from 'axios'
const axiosServer =axios.create({
     baseURL:'http://kumanxuan1.f3322.net:8001',
     timeout:2000,
})
axiosServer.interceptors.request.use(
    function(config){
        let token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxNzYzNCwiaWF0IjoxNjU2NDA5ODQyfQ.bXqq9nmtFi7gWsRbGBAxSBBtyAMU6UnleL93Rh64XKQ'
        if (token) {
            config.headers['X-Nideshop-Token'] = token
        }
      return config
}),

function (err) {
    return Promise.reject(err)
}

export default axiosServer







